package study01;

public class Java04_Object {
    public static void main(String[] args) {
        Cook c = new Cook();
        c.name = "红烧肉";
        c.food = "红烧";
        c.res();

        Cook c1 = new Cook();
        c1.name = "四喜丸子";
        c1.food = "四喜";
        c1.res();
    }
}

class Cook {
    String name;
    String food;
    String type = "大菜";

    void res () {
        System.out.println(name + food + type);
    }
}
